package org.oschina.api.discuss.forum.service;

import java.util.List;
import org.oschina.Module;
import org.oschina.api.BaseService;
import org.oschina.api.discuss.forum.dao.DiscussForumIndexDAO;
import org.oschina.api.discuss.forum.vo.DiscussForumIndexVo;
import org.oschina.security.annotation.Require;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiscussForumIndexService extends BaseService {

	@Autowired
	private DiscussForumIndexDAO discussForumIndexDAO;
	
	@Require(authorization=Module.MODULE_15)
	public List<DiscussForumIndexVo> findVo()
	{
		return discussForumIndexDAO.findVo();
	}
}